#ifndef SLIDEMENU_H
#define SLIDEMENU_H

#include <QWidget>
#include <QMap>

class QVBoxLayout;
class QComboBox;
class QScrollArea;

class SlideMenu : public QWidget {
    Q_OBJECT
public:
    explicit SlideMenu(QWidget *parent = nullptr);
    void syncParentSize();

signals:
    void citySelected(const QString &city);

private:
    void initMenuUI();
    void loadCitiesData();
    void updateCityList();

    QVBoxLayout *m_layout;
    QComboBox *m_continentCombo;
    QScrollArea *m_scrollArea;
    QWidget *m_cityContainer;
    QMap<QString, QStringList> m_cityData;
};

#endif // SLIDEMENU_H
